package tk.mybatis.springboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import tk.mybatis.springboot.model.CustomerResult;
import tk.mybatis.springboot.model.TCustomerInfo;

public interface TCustomerInfoMapper {
	public Integer myInsert(TCustomerInfo tCustomerInfo);
	
	public List<TCustomerInfo> findByDocCode(@Param("doc_code")String doc_code);
	
	public Integer updateMobile(@Param("mobile")String mobile, @Param("id")Integer id);
	
	public List<CustomerResult> findTCustomerInfoOrderByOrderTime(@Param("userId")Integer userId, @Param("isValid")Integer isValid);
	
	public List<CustomerResult> findTCustomerInfoOrderByOrderStartTime(@Param("userId")Integer userId, @Param("isValid")Integer isValid);
	
	public List<CustomerResult> findTCustomerInfoOrderByOrderTimeAll(@Param("userId")Integer userId);
	
	public List<CustomerResult> findTCustomerInfoOrderByOrderStartTimeAll(@Param("userId")Integer userId);
}
